﻿package Interface.TracksClasses
{	
	import Interface.SelectableLabel;
	import Fonts.FranclinGothicDemi;

	import flash.text.TextField;	
	import flash.text.TextFormat;
	
	public class TrackButtonLabel extends SelectableLabel
	{		
		public function TrackButtonLabel(AText:String):void
		{		
			var vFont:FranclinGothicDemi = new FranclinGothicDemi();
			var vFormat:TextFormat = new TextFormat(vFont.fontName);
			vFormat.size = 14;			
			vFormat.align = 'center';
			
			FText = new TextField();						
			FText.embedFonts = true;
			FText.defaultTextFormat = vFormat;			
			FText.selectable = false;			
			FText.text = AText;
			FText.height = 28;
			FText.width = 150;
			FText.y = 2.5;
			FText.textColor = 0xFFFFFF;
			addChild(FText);
					
			super();
		}
		
		public function set TextWidth(AWidth:Number):void
		{
			FText.width = AWidth;
		}
		
		public function set TextHeight(AHeight:Number):void
		{
			FText.height = AHeight;
		}
	}	
}

